<template>
  <view class="list flex-direction-column">
    <view
      class="item flex-space-between"
      v-for="item in props.list"
      :key="item.id"
      @click="tools.navTo('/pagesA/rich/mess?params=' + JSON.stringify({ id: item.id, type: 3 }))"
    >
      <view class="lable one-line">{{ item.title }}</view>
      <image src="/static/icon/03.png"></image>
    </view>
  </view>
</template>

<script setup lang="ts">
import { PropType } from 'vue'
import { Tlist } from '@/typings/list'
import tools from '@/utils/tools'

const props = defineProps({
  list: {
    type: Array as PropType<Tlist['item'][]>
  }
})
</script>

<style lang="scss" scoped>
.list {
  margin: 0 40rpx;
  .item {
    padding: 28rpx 0rpx;
    border-bottom: 1px solid #f9f9f9;
    .lable {
      flex: 1;
      margin-right: 40rpx;
    }
    image {
      width: 12rpx;
      height: 20rpx;
    }
  }
}
</style>
